<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<ui:decorate template="/templates/template.xhtml">
	<ui:define name="centro">
		<p:panel id="principal">
			<f:facet name="header">
				<h:outputText value="Manter Marca" />
			</f:facet>
			<h:form id="form1" prependId="false">
				<p:panel id="panelEdicao">

					<p:panelGrid columns="2" style="width:100%">
						<f:facet name="header">
							<h:outputText value="Cadastro de Marcas" />
						</f:facet>

						<h:outputText value="#{lbls.LBL_0005}:" />
						<h:outputText value="#{manterMarcaMBean.marca.id}" />

						<h:outputLabel for="txtMarcaNome" value="#{lbls.LBL_0010}:" />
						<h:panelGroup>
							<p:inputText value="#{manterMarcaMBean.marca.nome}"
								id="txtMarcaNome" label="#{lbls.LBL_0010}" />
							<h:outputText value="#{manterMarcaMBean.marca.nome}" />
						</h:panelGroup>

						<f:facet name="footer">
							<p:commandButton value="#{lbls.LBL_0002}" process="panelEdicao"
								update=":principal" icon="ui-icon-check"
								action="#{manterMarcaMBean.doSalvarAction}" />

							<p:commandButton value="#{lbls.LBL_0016}" process="panelEdicao"
								update=":principal" action="#{manterMarcaMBean.doEditarAction}"
								icon="ui-icon-check" />

							<p:commandButton value="#{lbls.LBL_0015}" process="@this"
								update=":principal" icon="ui-icon-cancel"
								action="#{manterMarcaMBean.doCancelarAction}" />
						</f:facet>
					</p:panelGrid>

				</p:panel>
			</h:form>
		</p:panel>
	</ui:define>
</ui:decorate>
</html>